<?php

class DefaultController extends HBaseController
{
	public $layout  = "//layouts/home";	
	public $pageKeyword = '';
	public $pageDesc = '';
	//导航焦点
	public $active_cur = '';
	
	public function actionIndex()
	{
		//设置首页导航焦点
		$this->active_cur = 'home';
		
		$homenav = Nav::model()->findByPk(66);
		$this->pageTitle   = $homenav->zna_seotitle; //SEO标题
		$this->pageKeyword = $homenav->zna_seokey;   //SEO关键字
		$this->pageDesc    = $homenav->zna_seodesc;  //SEO描述

		//加载分类
		$category = new Category();

		//加载左侧分类
		$left_cat = Block::model()->Getpos('index_left_menu');
		//print_r($left_cat['zbl_data']);exit;
		//print_r($category->GetCategorys());exit;
		$this->render('index',array(			
			'categorys' => $category->GetCategorys(),
			'left_cat' => $left_cat,
			));
	}
}